package com.agentfactory.teleoreactive.core;

import com.agentfactory.logic.update.lang.Predicate;
import com.agentfactory.teleoreactive.interpreter.Utilities;
import com.agentfactory.teleoreactive.interpreter.mentalstate.Action;

public class BindToServiceAction extends Action {
	@Override
	public boolean execute(Predicate activity) {
		String id = Utilities.presenter.toString(activity.termAt(0));
		if (agent.bindToPlatformService(id)) {
			return true;
		}
		return false;
	}

}
